package com.lanou.mapper;

import com.lanou.bean.ReclamationOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ReclamationOrderMapper {


    int insert(ReclamationOrder record);

    int insertSelective(ReclamationOrder record);

    ReclamationOrder selectByPrimaryKey(Integer id);

    //更新订单数据
    int cancelOrder(ReclamationOrder reclamationOrder);


    int updateByPrimaryKey(ReclamationOrder record);

    List<ReclamationOrder> getRecOrdList();

    //根据废品的scrap_code获取废品名称
    String getScrapName(String scrapCode);

    //根据废品的scrap_code获取废品价格名称
    int getPrice(String scrapCode);

    //根据业主id获取业主姓名
    String getOwnerName(String ownerId);

    //根据废品回收员id获取废品回收员姓名
    String getScName(String scId);

    //根据回收状态码获取回收状态
    String getScSta(String scStatus);




}